﻿@model Yunwei.Web.Areas.Admin.Models.ChangePasswordViewModel

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">修改密码</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<div class="row">
    <div class="col-lg-6">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form-horizontal">
                @Html.ValidationSummary(true)

                <div class="form-group">
                    @Html.LabelFor(model => model.OriginalPassword, new { @class = "control-label col-sm-4" })
                    <div class="col-md-8">
                        @Html.PasswordFor(model => model.OriginalPassword, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.OriginalPassword)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.Password, new { @class = "control-label col-sm-4" })
                    <div class="col-md-8">
                        @Html.PasswordFor(model => model.Password, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.Password)
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.ConfirmPassword, new { @class = "control-label col-sm-4" })
                    <div class="col-md-8">
                        @Html.PasswordFor(model => model.ConfirmPassword, new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.ConfirmPassword)
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-4 col-sm-8">
                        <input type="submit" value="修改" class="btn btn-success" />
                    </div>
                </div>
            </div>
        }
    </div>
</div>
